Redundant Argument Filtering of Logic Programs
نویسندگان
چکیده
This paper is concerned with the problem of removing, from a given logic program, redundant arguments. These are arguments which can be removed without affecting correctness. Most program specialisation techniques, even through they perform argument filtering and redundant clause removal, fail to remove a substantial number of redundant arguments, yielding in some cases rather inefficient residual programs. We formalise the notion of a redundant argument and show that one cannot decide effectively whether a given argument is redundant. We then give a safe, effective approximation of the notion of a redundant argument and describe several simple and efficient algorithms calculating based on the approximation notion. Redundant Argument Filtering of Logic Programs Michael Leuschel1 & Morten Heine S rensen2 1 Department of Computer Science, Katholieke Universiteit Leuven, Celestijnenlaan 200A, B-3001, Heverlee, Belgium, [email protected]. 2 Department of Computer Science, University of Copenhagen, Universitetsparken 1, DK-2100 Copenhagen, Denmark. [email protected]. Abstract. This paper is concerned with the problem of removing, from a given logic program, redundant arguments. These are arguments which can be removed without a ecting correctness. Most program specialisation techniques, even though they perform argument ltering and redundant clause removal, fail to remove a substantial number of redundant arguments, yielding in some cases rather ine cient residual programs. We formalise the notion of a redundant argument and show that one cannot decide e ectively whether a given argument is redundant. We then give a safe, e ective approximation of the notion of a redundant argument and describe several simple and e cient algorithms calculating based on the approximative notion. We conduct extensive experiments with our algorithms on mechanically generated programs illustrating the practical bene ts of our approach.
منابع مشابه
Forward Slicing by Conjunctive Partial Deduction and Argument Filtering
Program slicing is a well-known methodology that aims at identifying the program statements that (potentially) affect the values computed at some point of interest. Within imperative programming, this technique has been successfully applied to debugging, specialization, reuse, maintenance, etc. Due to its declarative nature, adapting the slicing notions and techniques to a logic programming set...
متن کاملAnswer-set programming encodings for argumentation frameworks
We present reductions from Dung’s argumentation framework (AF) and generalizations thereof to logic programs under the answer-set semantics. The reduction is based on a fixed disjunctive datalog program (the interpreter) and its input which is the only part depending on the AF to process. We discuss the reductions, which are the basis for the system ASPARTIX in detail and show their adequacy in...
متن کاملSlicing Concurrent Logic Programs
Program slicing has been widely studied for imperative programs, but for logic programs it is just starting. In this paper we address the problem of slicing concurrent logic programs. To solve this problem, we propose three types of primary program dependences between arguments in concurrent logic programs, named the sharing dependence, communication dependence and uni cation dependence. We als...
متن کاملThe Argument Dependence Net and Its Use in a Concurrent Logic Programming Environment
This paper presents three types of primary program dependences in concurrent logic programs, and a dependence-based representation named the argument dependence net (ADN) to explicitly represent these program dependences in a concurrent logic program. The ADN can be used as an underlying representation for developing software engineering tools for concurrent logic programs.
متن کاملOn Line Electric Power Systems State Estimation Using Kalman Filtering (RESEARCH NOTE)
In this paper principles of extended Kalman filtering theory is developed and applied to simulated on-line electric power systems state estimation in order to trace the operating condition changes through the redundant and noisy measurements. Test results on IEEE 14 - bus test system are included. Three case systems are tried; through the comparing of their results, it is concluded that the pro...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 1996